package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 记上课扣课时与费用明细
 * </p>
 *
 * @author min
 * @since 2022-10-06
 */
@TableName("record_cost")
@Data
public class RecordCost implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 与记上课表id相同
     */
    @TableId
    private Long id;

    private Long recordCourseId;

    private Long orderDetailId;

    /**
     * 本次扣课时
     */
    private Integer buckleClassHouse;

    /**
     * 本次扣课时金额
     */
    private BigDecimal buckleClassMoney;

    /**
     * 老师得课时
     */
    private Integer teacherGetHouse;

    /**
     * 老师得金额
     */
    private BigDecimal teacherGetMoney;

    private BigDecimal servePrice;

    private BigDecimal materialsPrice;

    @TableLogic
    private Integer deleted;

    /**
     * created_at
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
